<div class="fixed_menu" id="fixed_menu">
    <ul>
        <li class="li_1"><a href="{dr_url('order/cart/index')}" id="h_cart_btn">购物车<s class="s " id="shop_cart_num">0</s></a>
        </li>
        <li class="li_2"><a href="{dr_member_url('order/home/index')}">我的订单</a></li>
    </ul>
</div>
<script language="javascript">
    $(function () {
        $.ajax({
            type : "GET",
            url : "/index.php?s=order&c=cart&m=nums",
            dataType:"jsonp",  //请求支持jsonp
            success : function (json) {
                if (json.status == 1) {
                    $("#shop_cart_num").html(json.code);
                }
            }
        });
     });
</script>